$fontSize_14: 0.8vw;
$fontSize_16: 0.9vw;
$fontSize_18: 1vw;
$fontSize_22: 1.1vw;
$fontSize_24: 1.26vw;
$fontSize_28: 1.3vw;
$fontSize_32: 1.4vw;
$fontSize_36: 1.8vw;
$fontSize_40: 2.1vw;
$fontSize_48: 2.5vw;
$fontSize_50: 2.6vw;
$fontSize_54: 2.7vw;
$fontSize_64: 3.2vw;
$fontSize_70: 3.5vw;
$fontSize_90: 4.5vw;
$fontSize_100: 5vw;
$fontSize_200: 10vw;
$f: 19.2;

.home {
  position: relative;
  width: 100%;
  padding-top: 2vw;
    overflow: hidden;
  .bg_shape {
    position: absolute;
    left: 0;
    top: 0;
    z-index: -1;
    width: 100%;
    height: 50vh;

    img {
      width: 100%;
      object-fit: contain;
    }
  }

  .dialog {
    position: fixed;
    left: 0;
    top: 0;
    width: 100%;
    height: 100vh;
    z-index: 100;
    background: rgba(0, 0, 0, 0.60);
    display: flex;
    align-items: center;
    justify-content: center;
    display: none;

    .content {
      position: relative;

      .s {
        img {
          width: 900/$f+vw;
          object-fit: contain;
        }
      }

      .close {
        position: absolute;
        left: 50%;
        bottom: 0;
        transform: translateX(-100%);
        cursor: pointer;

        img {
          width: 2vw;
          min-width: 20px;
        }
      }

      .mc {
        position: absolute;
        left: 15%;
        top: 12%;
        width: 63%;

        .t {
          color: #FFF;
          font-size: $fontSize_48;
          font-style: italic;
          text-align: center;
        }

        .des {
          margin: 1vw 0;
          line-height: 1.5;

          p {
            color: #FFF;
            font-size: $fontSize_24;
            font-style: italic;
            text-indent: $fontSize_24;
          }
        }

        .icons {
          display: flex;

          a {
            margin-right: 10px;

            svg {
              width: 24/$f+vw;
              min-width: 16px;
            }
          }
        }
      }
    }
  }

  .section1 {
    display: flex;
    justify-content: space-between;
    align-items: center;

    .title {
      position: relative;
      display: inline-block;

      img {
        width: 540/$f+vw;
      }

      p {
        position: absolute;
        color: #FFF;
        font-size: $fontSize_64;
        font-weight: bold;
        right: 10%;
        top: 20%;
        text-transform: uppercase;
      }
    }

    .rpic {
      position: relative;

      .pic1 {
        img {
          width: 310/$f+vw;
        }
      }

      .pic2 {
        position: absolute;
        right: 0;
        top: 30%;

        img {
          width: 150/$f+vw;
        }
      }
    }
  }

  .section2 {
    padding: 0 8vw;
    position: relative;
    .lines {
      position: absolute;
      left: 0;
      top: 50%;
      width: 100%;
      transform: translateY(-50%);

      img {
        width: 100%;
      }
    }

    .list {
      display: flex;
      flex-wrap: wrap;
      margin-bottom: 6vw;
      width: 105%;
      margin-left: -2.5%;

      .item {
        width: 21.5%;
        margin-left: 2.7%;
        border-radius: 12px;
        background: #2B2B2B;
        margin-bottom: 2vw;
        height: auto;
        position: relative;
        z-index: 10;
        cursor: pointer;

        .pic {
          img {
            width: 100%;
            display: block;
            object-fit: cover;
          }
        }

        .text {
          padding: 0.7vw 1vw 1vw 1vw;

          .pname {
            color: #F4F4F4;
            font-size: $fontSize_28;
            font-weight: 700;
          }

          .icons {
            display: flex;
            margin-top: 1vw;

            a {
              display: block;
              margin-right: 10px;

              svg {
                width: 24/$f+vw;
                min-width: 16px;

                g {
                  opacity: .2;
                  transition: all 600ms;
                }

                &:hover {
                  g {
                    opacity: 1;
                  }
                }
              }
            }
          }
        }
      }

      .item:nth-child(2n+1) {
        transform: translateY(-4vw);
      }
    }
  }

  @media screen and (max-width: 1024px) {
    padding-top: 60px;

    .section2 {
      padding: 0 5%;
      margin-top: 20px;
      .list {
        width: 100%;
        margin-left: 0;
        justify-content: space-between;
        margin-bottom: 60px;
        .item {
          width: 48%;
          margin-left: 0;
          margin-bottom: 15px;
          .text{
            padding: 8px 15px;
            .pname{
              font-size: 14px;
            }
          }
        }
        .item:nth-child(2n+1){
          transform: translateY(-30px);
        }
      }
    }
    .dialog{
      .content{
        .s{
          img{
            width: 110%;
          }
        }
        .mc{
          width: 73%;
          .t{
            font-size: 24px;
          }
          .des{
            height: 200px;
            overflow-y: scroll;
            margin: 10px 0;
            p{
              font-size: 12px;
            }
          }
        }
        .close{
          bottom:-20px;
          img{
            width: 30px;
          }
        }
      }
    }
  }
}